<include file="Public:header" />
<div style="boder:1px solid #ccc;margin:10px 10px 0px 10px;">
    <div style="border:1px solid #ccc;height:40px;padding:0 0 0 20px;line-height:40px;">
           添加新闻
    </div>
    <form action="{:U('WebsiteContentManage/index')}" method="post">
    <div style="border:1px solid #ccc;height:auto;padding:10px 0px 10px 13px;margin-top:5px;"> 
                    <select name="column_id">
					    <option value="0">请选择栏目</option>
                        <foreach name="columnName" item="val">
                        <option value="{$val.id}" <if condition="$val.id eq $column_id">selected</if> >{$val.column_name}</option>
                        </foreach>
                    </select>
                    <input type="submit" name="show" value="显示" />
    </div>
	</form> 
    <div style="border:1px solid #ccc;margin:5px 0px 5px 0px;padding:5px 0px 5px 10px;">
        <form action="{:U('WebsiteContentManage/addNewsCenter')}" method="post" >
        <table>
		      <tr>
			       <td colspan="4">
				       
                       <input type="submit" name="save" value="添加" />
                
                       <input type="reset" value="重置" />
				   </td>
			  </tr>
              <tr>
                  <th>标题：</th>
                  <td>
                      <input type="hidden" name="column_id" value="{$column_id}" />
                      <input type="text" name="news_name" value="" size="50" />
                  </td>
              </tr>
              <tr>
                  <th>简介：</th>
                  <td><textarea name="news_describe" style="width:800px;height:245px;visibility:hidden;"></textarea></td>
              </tr>
              <tr>
                  <th>内容：</th>
                  <td><textarea name="news_content" style="width:800px;height:245px;visibility:hidden;"></textarea></td>
              </tr>
              <tr>
                  <th>创建时间</th>
                  <td>
                      <input type="text" name="create_time" value="<php>echo date('Y-m-d H:i:s');</php>" readonly="readonly"/>
                  </td>
              </tr>
        </table> 
    </div>
    </form>
</div>
<script type="text/javascript">
     KindEditor.ready(function(K){
              K.create('textarea[name="news_describe"]');
              K.create('textarea[name="news_content"]');
          });
</script>
  </body>
</html>

